Optimal. Leaf size=93 \[ -\frac {1}{10 x^5}+\frac {17}{24 x^3}-\frac {x \left (3-5 x^2\right )}{32 \left (x^4+3 x^2+2\right )^2}-\frac {x \left (999 x^2+1771\right )}{128 \left (x^4+3 x^2+2\right )}-\frac {93}{16 x}+\frac {29}{8} \tan ^{-1}(x)-\frac {2207 \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )}{128 \sqrt {2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 93, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {1669, 1664, 203} \begin {gather*} -\frac {x \left (3-5 x^2\right )}{32 \left (x^4+3 x^2+2\right )^2}-\frac {x \left (999 x^2+1771\right )}{128 \left (x^4+3 x^2+2\right )}+\frac {17}{24 x^3}-\frac {1}{10 x^5}-\frac {93}{16 x}+\frac {29}{8} \tan ^{-1}(x)-\frac {2207 \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )}{128 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 1664
Rule 1669
Rubi steps
\begin {align*} \int \frac {4+x^2+3 x^4+5 x^6}{x^6 \left (2+3 x^2+x^4\right )^3} \, dx &=-\frac {x \left (3-5 x^2\right )}{32 \left (2+3 x^2+x^4\right )^2}-\frac {1}{8} \int \frac {-16+20 x^2-34 x^4+\frac {81 x^6}{4}-\frac {25 x^8}{4}}{x^6 \left (2+3 x^2+x^4\right )^2} \, dx\\ &=-\frac {x \left (3-5 x^2\right )}{32 \left (2+3 x^2+x^4\right )^2}-\frac {x \left (1771+999 x^2\right )}{128 \left (2+3 x^2+x^4\right )}+\frac {1}{32} \int \frac {32-88 x^2+184 x^4+\frac {681 x^6}{4}-\frac {999 x^8}{4}}{x^6 \left (2+3 x^2+x^4\right )} \, dx\\ &=-\frac {x \left (3-5 x^2\right )}{32 \left (2+3 x^2+x^4\right )^2}-\frac {x \left (1771+999 x^2\right )}{128 \left (2+3 x^2+x^4\right )}+\frac {1}{32} \int \left (\frac {16}{x^6}-\frac {68}{x^4}+\frac {186}{x^2}+\frac {116}{1+x^2}-\frac {2207}{4 \left (2+x^2\right )}\right ) \, dx\\ &=-\frac {1}{10 x^5}+\frac {17}{24 x^3}-\frac {93}{16 x}-\frac {x \left (3-5 x^2\right )}{32 \left (2+3 x^2+x^4\right )^2}-\frac {x \left (1771+999 x^2\right )}{128 \left (2+3 x^2+x^4\right )}+\frac {29}{8} \int \frac {1}{1+x^2} \, dx-\frac {2207}{128} \int \frac {1}{2+x^2} \, dx\\ &=-\frac {1}{10 x^5}+\frac {17}{24 x^3}-\frac {93}{16 x}-\frac {x \left (3-5 x^2\right )}{32 \left (2+3 x^2+x^4\right )^2}-\frac {x \left (1771+999 x^2\right )}{128 \left (2+3 x^2+x^4\right )}+\frac {29}{8} \tan ^{-1}(x)-\frac {2207 \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )}{128 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 73, normalized size = 0.78 \begin {gather*} \frac {-\frac {2 \left (26145 x^{12}+137120 x^{10}+246477 x^8+170702 x^6+30816 x^4-3136 x^2+768\right )}{x^5 \left (x^4+3 x^2+2\right )^2}+13920 \tan ^{-1}(x)-33105 \sqrt {2} \tan ^{-1}\left (\frac {x}{\sqrt {2}}\right )}{3840} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {4+x^2+3 x^4+5 x^6}{x^6 \left (2+3 x^2+x^4\right )^3} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.25, size = 124, normalized size = 1.33 \begin {gather*} -\frac {52290 \, x^{12} + 274240 \, x^{10} + 492954 \, x^{8} + 341404 \, x^{6} + 61632 \, x^{4} + 33105 \, \sqrt {2} {\left (x^{13} + 6 \, x^{11} + 13 \, x^{9} + 12 \, x^{7} + 4 \, x^{5}\right )} \arctan \left (\frac {1}{2} \, \sqrt {2} x\right ) - 6272 \, x^{2} - 13920 \, {\left (x^{13} + 6 \, x^{11} + 13 \, x^{9} + 12 \, x^{7} + 4 \, x^{5}\right )} \arctan \relax (x) + 1536}{3840 \, {\left (x^{13} + 6 \, x^{11} + 13 \, x^{9} + 12 \, x^{7} + 4 \, x^{5}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.36, size = 67, normalized size = 0.72 \begin {gather*} -\frac {2207}{256} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} x\right ) - \frac {999 \, x^{7} + 4768 \, x^{5} + 7291 \, x^{3} + 3554 \, x}{128 \, {\left (x^{4} + 3 \, x^{2} + 2\right )}^{2}} - \frac {1395 \, x^{4} - 170 \, x^{2} + 24}{240 \, x^{5}} + \frac {29}{8} \, \arctan \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 68, normalized size = 0.73 \begin {gather*} \frac {29 \arctan \relax (x )}{8}-\frac {2207 \sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, x}{2}\right )}{256}-\frac {93}{16 x}+\frac {17}{24 x^{3}}-\frac {1}{10 x^{5}}+\frac {-\frac {43}{8} x^{3}-\frac {45}{8} x}{\left (x^{2}+1\right )^{2}}-\frac {\frac {311}{8} x^{3}+\frac {337}{4} x}{16 \left (x^{2}+2\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.74, size = 77, normalized size = 0.83 \begin {gather*} -\frac {2207}{256} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} x\right ) - \frac {26145 \, x^{12} + 137120 \, x^{10} + 246477 \, x^{8} + 170702 \, x^{6} + 30816 \, x^{4} - 3136 \, x^{2} + 768}{1920 \, {\left (x^{13} + 6 \, x^{11} + 13 \, x^{9} + 12 \, x^{7} + 4 \, x^{5}\right )}} + \frac {29}{8} \, \arctan \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.93, size = 77, normalized size = 0.83 \begin {gather*} \frac {29\,\mathrm {atan}\relax (x)}{8}-\frac {2207\,\sqrt {2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,x}{2}\right )}{256}-\frac {\frac {1743\,x^{12}}{128}+\frac {857\,x^{10}}{12}+\frac {82159\,x^8}{640}+\frac {85351\,x^6}{960}+\frac {321\,x^4}{20}-\frac {49\,x^2}{30}+\frac {2}{5}}{x^{13}+6\,x^{11}+13\,x^9+12\,x^7+4\,x^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.31, size = 82, normalized size = 0.88 \begin {gather*} \frac {29 \operatorname {atan}{\relax (x )}}{8} - \frac {2207 \sqrt {2} \operatorname {atan}{\left (\frac {\sqrt {2} x}{2} \right )}}{256} + \frac {- 26145 x^{12} - 137120 x^{10} - 246477 x^{8} - 170702 x^{6} - 30816 x^{4} + 3136 x^{2} - 768}{1920 x^{13} + 11520 x^{11} + 24960 x^{9} + 23040 x^{7} + 7680 x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________